<!doctype html>
<html lang="en">

<head>
	<meta charset="utf-8" />
	<title>我的信息</title>
	<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
	<meta content="A fully featured admin theme which can be used to build CRM, CMS, etc." name="description" />
	<meta content="Coderthemes" name="author" />
	<meta http-equiv="X-UA-Compatible" content="IE=edge" />

	<!-- App favicon -->
	<link rel="shortcut icon" href="assets/images/favicon.ico">

	<!-- App css -->
	<link href="assets/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
	<link href="assets/css/icons.css" rel="stylesheet" type="text/css" />
	<link href="assets/css/metismenu.min.css" rel="stylesheet" type="text/css" />
	<link href="assets/css/style.css" rel="stylesheet" type="text/css" />
	<link rel="stylesheet" type="text/css" href="assets/css/custom.css" />
	<!-- layer插件 -->
	<link rel="stylesheet" type="text/css" href="plugins/layer2.4/skin/layer.css" />

	<script src="assets/js/modernizr.min.js"></script>

</head>

<body class="account-pages">

	<!-- Begin page -->
	<div class="col-md-12">
		<div class="card-box">
			<h4 class="m-t-0 m-b-30 header-title">我的信息</h4>

			<form class="form-horizontal" role="form">
				<div class="form-group row">
					<label for="email" class="col-3 col-form-label">我的邮箱</label>
					<div class="col-9">
						<input readonly="readonly" type="text" class="form-control" id="email" name="email">
					</div>
				</div>
				<div class="form-group row">
					<label for="rid" class="col-3 col-form-label">我的角色</label>
					<div class="col-9">
						<input readonly="readonly" type="text" class="form-control" id="rid" name="rid">
					</div>
				</div>
				<div class="form-group row">
					<label for="" class="col-3 col-form-label">修改密码</label>
					<a href="recoverpw.html" class="text-muted float-right">忘记密码</a>
				</div>
				<div class="form-group mb-0 justify-content-end row">
					<div class="col-9">
						<button type="button" onclick="layer_close()" class="btn btn-danger waves-effect">关闭</button>
					</div>
				</div>
			</form>
		</div>
	</div>

	<!-- jQuery  -->
	<script src="assets/js/jquery.min.js"></script>
	<script src="assets/js/bootstrap.bundle.min.js"></script>
	<script src="assets/js/metisMenu.min.js"></script>
	<script src="assets/js/waves.js"></script>
	<script src="assets/js/jquery.slimscroll.js"></script>

	<!-- App js -->
	<script src="assets/js/jquery.core.js"></script>
	<script src="assets/js/jquery.app.js"></script>
	<script src="assets/js/custom.js" type="text/javascript" charset="utf-8"></script>

	<!-- 表单验证 -->
	<script src="plugins/jquery.form.js/jquery.form.min.js" type="text/javascript" charset="utf-8"></script>
	<script src="plugins/jquery.validation.1.14.0/jquery.validate.js" type="text/javascript" charset="utf-8"></script>
	<script src="plugins/jquery.validation.1.14.0/validate-methods.js" type="text/javascript" charset="utf-8"></script>
	<script src="plugins/jquery.validation.1.14.0/messages_zh.js" type="text/javascript" charset="utf-8"></script>
	<!-- bootstrap-select -->
	<script src="plugins/bootstrap-select/js/bootstrap-select.js" type="text/javascript" charset="utf-8"></script>

	<!-- layer插件 -->
	<script src="plugins/layer2.4/layer.js" type="text/javascript" charset="utf-8"></script>
	<!-- easyUI -->
	<script src="plugins/jquery-easyUI/jquery.easyui.min.js" type="text/javascript" charset="utf-8"></script>
	<script src="plugins/jquery-easyUI/easyui-lang-zh_CN.js" type="text/javascript" charset="utf-8"></script>

	<script type="text/javascript">
		//点击我的信息（即打开）才需要触发
		$(function () {
			getMessage(getCookie('loginUsername'))
		})

		//我的信息
		function getMessage(username) {
			$.ajax({
				url: URL + 'findUserByName',
				type: 'post',
				data: {
					"Name": username
				},
				dataType: "json",
				success: function (data) {
					data =data[0]
					console.log(data)
					$("form").form('load', data);
					// $("#email").val(data.email)
					// $("#role").val(data.role)
				},
				error(err) {
					console.log(err)
				}
			})
		}


	</script>
</body>

</html>